package com.ncucoder.jwva.model;

import java.sql.Timestamp;

/**
 * @author <a href="https://www.ncucoder.com">hsowan</a>
 * @since 2019-01-12 22:34
 */
public class Admin {
    private Long id;
    private Timestamp lastLoginTime;
    private String username;
    private String password;

    public Admin() {
    }

    public Admin(Timestamp lastLoginTime, String username, String password) {
        this.lastLoginTime = lastLoginTime;
        this.username = username;
        this.password = password;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Timestamp getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Timestamp lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "id='" + id + '\'' +
                ", lastLoginTime=" + lastLoginTime +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
